package com.jy.mapper;

import com.jy.entity.CwAdvertising;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jy.entity.PageInfo;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 广告费表 Mapper 接口
 * </p>
 *
 * @author WeiQuan
 * @since 2022-11-14
 */
public interface CwAdvertisingMapper extends BaseMapper<CwAdvertising> {
//    查询广告费
    List<CwAdvertising> allCwAdvertising(PageInfo pageInfo);
//    查询广告费数量
    @Select("select count(*) from cw_advertising")
    public int selCwAdvertisingcount();
//    添加广告费
    public int addCwAdvertisingcount(CwAdvertising cwAdvertising);
//    删除广告费
    public int delCwAdvertisingcount(Integer aid);
//    修改广告费
    public int upCwAdvertisingcount(CwAdvertising cwAdvertising);
}
